import actionType from "../action";

let liveReducer = (state = { info: [] }, action: any) => {
    switch (action.type) {
        case actionType.INITLIVE:
            return { info: [...action.playload ] }
        case actionType.ADDLIVE:
            return { info: [ ...state.info, ...action.playload ] }
        case actionType.DELLIVE:
            return {info: [...action.playload ]}  
    }

    return state;
}
export default liveReducer;